package day2.Exer530;

import redis.clients.jedis.Jedis;

public class JedisExer {
    public static void main(String[] args) {
        Jedis jedis=new Jedis("127.0.0.1",6379);
        System.out.println(jedis.ping());
        jedis.set("foo","bar");
        String str=jedis.get("foo");
        System.out.println(str);
        jedis.close();
    }
}
